*{
    box-sizing: border-box;
}

body{
    overflow-x: hidden;
    background-color: black;
}

@media screen and (max-width: 700px) {
    body,html{
        width: 700px;
    }
}

.nav{
    // position: sticky;
    position: relative;
    background-color: white;
    top: 0;
    width: 100%;
    height: 140px;
    z-index: 9999;
    color: #616161;
    &>div{
        width: 90%;
        height: 100%;
        margin: 0 auto;
        &>.log{
            position: relative;
            width: 70px;
            height: 70px;
            float: left;
            a{
                position: relative;
                z-index: 9999999;
                display: block;
                width: 100%;
                height: 100%;
            }
            img{
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
        }
        &>.top{
            position: relative;
            width: 80%;
            height: 50%;
            float: right;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            &>div{
                &:nth-child(1){
                    position: relative;
                    width: max-content;
                    height: 100%;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;
                    &>div:not(&>.show){
                        height: 100%;
                        padding: 5px;
                        margin-right: 20px;
                        font-size: .2rem;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        &:hover{
                            cursor: pointer;
                        }
                    }
                    // 悬停显示但是滚动无法隐藏改用js
                    // &>.top-nav{
                    //     &:nth-child(1){
                    //         &:hover{
                    //             &~.shop{
                    //                 display: flex;
                    //             }
                    //         }
                    //     }
                    //     &:nth-child(2){
                    //         &:hover{
                    //             &~.phone{
                    //                 display: flex;
                    //             }
                    //         }
                    //     }
                    //     &:nth-child(3){
                    //         &:hover{
                    //             &~.tv{
                    //                 display: flex;
                    //             }
                    //         }
                    //     }
                    //     &:nth-child(4){
                    //         &:hover{
                    //             &~.router{
                    //                 display: flex;
                    //             }
                    //         }
                    //     }
                    // }
                    &>.show{
                        position: fixed;
                        padding: 20px;
                        width: 90vw;
                        height: 250px;
                        top: 70px;
                        left: 5vw;
                        // display: none;
                        background-color: white;
                        overflow-x: auto;
                        border: 1px solid gray;
                        flex-direction: row;
                        align-items: center;
                        justify-content: flex-start;
                        // &:hover{
                        //     display: flex;
                        // }
                        &>.img{
                            width: max-content;
                            height: 100%;
                            margin-right: 20px;
                            display: flex;
                            flex-direction:column;
                            align-items: center;
                            justify-content: space-between;
                            &:hover{
                                cursor: pointer;
                            }
                            &>*:nth-child(1){
                                height: 80%;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                            }
                            &>*:nth-child(2){
                                font-size: 22px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                            }
                            &>*:nth-child(3){
                                font-size: 18px;
                                color: #ff6700;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                            }
                        }
                    }
                }
            }
            &>.input{
                float: right;
                width: 30%;
                height: 50px;
                margin: 10px 0;
                position: relative;
                input{
                    width: 100%;
                    height: 100%;
                    padding: 5px 70px 5px 10px;
                    font-size: 16px;
                    outline: none;
                    border: 1px solid gray;
                    float: left;
                    &:focus{
                        border: 1px solid #ff6700;
                        &+div{
                            border-left: 1px solid #ff6700;
                        }
                    }
                }

                div{
                    position: absolute;
                    right: 0;
                    top: 0;
                    height: 100%;
                    width: 60px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 22px;
                    border-left: 1px solid gray;
                    &:hover{
                        cursor: pointer;
                        color: #ff6700;
                    }
                }
            }
        }
        &>.bottom{
            width: 100%;
            height: 50%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid gray;
            padding: 10px;
            &>div{
                font-size: 18px;
                &:nth-child(1){
                    &::first-letter{
                        font-size: 30px;
                    }
                }
                &:nth-child(2){
                    width: max-content;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: space-around;
                    &>div{
                        padding: 5px 20px;
                        &:not(&:nth-last-child(1)){
                            border-right: 1px solid gray;
                            a{
                                color: #616161;
                                text-decoration: none;
                                &:hover{
                                    color: #ff6700;
                                }
                            }
                            
                        }
                        &:nth-last-child(2){
                            margin-right: 30px;
                            border-right: none !important;
                        }
                    }

                    &>a{
                        background-color: #ff6700;
                        display: block;
                        padding: 16px 60px;
                        color: white;
                        font-size: 14px;
                        text-decoration: none;
                    }
                }
            }
        }
    }
}

// @media screen and (max-width: 750px) {
//     .nav{
//         height: 100px;
//         &>div{
//             .top{
//                 &>div{
//                     &:nth-child(1){
//                         .show{
//                             height: 0;
//                             border: none;
//                         }
//                     }
//                 }
//             }
//         }
//     }
// }

@media screen and (max-width: 900px) {
    .nav{
        height: 100px;
        &>div{
            &>.log{
                width: 50px;
                height: 50px;
            }
            .top{
                &>div{
                    &:nth-child(1){
                        div{
                            font-size: 14px !important;
                        }

                        .show{
                            height: 0;
                            border: none;
                            visibility: hidden;
                        }
                    }
                }

                .input{
                    height: 35px;
                    div{
                        width: 40px;
                        font-size: 16px;
                    }
                }
            }

            .bottom{
                &>div{
                    &:nth-child(1){
                        font-size: 14px;
                        &::first-letter{
                            font-size: 20px;
                        }
                    }

                    &:nth-child(2){
                        div{
                            font-size: 14px;
                            &:nth-last-child(2){
                                margin-right: 20px;
                                border-right: none !important;
                            }
                        }

                        &>a{
                            padding: 10px 40px;
                            font-size: 10px;
                        }
                    }
                }
            }
        }
    }
}

.content{
    width: 100%;
    // 这里如果用绝对定位布局不要加padding，否者缩放会导致比例不一样
    // 这里不用margin是因为负数会导致塌陷，用绝对定位省事
    // 后面两个因为加了padding所以负数可以被padding抵消
    .text{
        position: relative;
        width: 100%;
        img{
            width: 100%;
        }
        .name{
            position: absolute;
            width: 30%;
            color: white;
            font-size: 3vw;
            top: 30%;
            left: 10%;
        }
    }

    .text2{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 200px 0 0 0;
        &>div{
            position: relative;
            margin: 0 0 -10% 0;
            width: max-content;
            p{
                text-align: center;
                margin-bottom: 10px;
                color: #939393;
                font-weight: 100;
                font-size: 1.2vw;
                font-weight: 600;
                &:nth-last-child(1){
                    margin-top: 30px;
                    font-size: 2vw;
                    font-weight: 900;
                    color: white;
                    font-weight: 100;
                }
            }
        }
        
        img{
            width: 100%;
        }
    }

    .text3{
        position: relative;
        width: 100%;
        height: max-content;
        padding: 200px 0 0 0;
        &>img{
            width: 80%;
            margin-left: 20%;
        }
        &>div{
            position: relative;
            margin: 0 0 -10% 20%;
            width: max-content;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-around;
            img{
                width: 10vw;
            }
            p{
                color: white;
                font-size: 4vw;
            }
        }
    }

    .parameter{
        width: 60%;
        margin: 200px auto 120px auto;
        &>div{
            img{
                width: 100%;
                height: 100%;
            }
            &:nth-child(1){
                position: relative;
                width: 100%;
                height: 25vw;
                margin-bottom: 1vw;
                &>img{
                    width: 100%;
                    height: 100%;
                }
                &>div{
                    position: absolute;
                    width: min-content;
                    left: 55%;
                    top: 20%;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: center;
                    color: white;
                    h1{
                        font-size: .2rem;
                        width: max-content;
                    }
                    p{
                        font-size: .1rem;
                        width: max-content;
                    }
                    
                    img{
                        width: 40%;
                    }
                    &>*:not(&>*:nth-last-child(1)){
                        margin-bottom: .2vw;
                    }
                }
            }
            &:nth-child(2){
                width: 100%;
                height: 35vw;
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: nowrap;
                margin-bottom: 1vw;
                &>div{
                    &:nth-child(1){
                        position: relative;
                        width: 34%;
                        height: 100%;
                        &>div{
                            position: absolute;
                            top: 10%;
                            left: 5%;
                            color: white;
                            h1{
                                font-size: .24rem;
                            }
                            p{
                                font-size: .08rem;
                            }
                        }
                    }
                    &:nth-last-child(1){
                        width: 65%;
                        height: 100%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: space-between;
                        &>div{
                            position: relative;
                            width: 100%;
                            height: 49%;
                            div{
                                position: absolute;
                                top: 10%;
                                left: 5%;
                                color: white;
                                h1{
                                    font-size: .24rem;
                                }
                                p{
                                    font-size: .08rem;
                                }
                            }
                        }
                    }
                }
            }
            &:nth-child(3){
                width: 100%;
                height: 15vw;
                display: flex;
                align-items: center;
                justify-content: space-between;
                &>div{
                    height: 100%;
                    position: relative;
                    &:nth-child(1){
                        width: 60%;
                    }
                    &:nth-child(2){
                        width: 38%;
                    }
                    &>div{
                        position: absolute;
                        top: 13%;
                        left: 8%;
                        color: white;
                        h1{
                            font-size: .24rem;
                        }
                        p{
                            font-size: .08rem;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 750px) {
    .content{
        .text{
            .name{
                font-size: 23px;
            }
        }

        .text2{
            &>div{
                p{
                    font-size: 12px;
                    &:nth-last-child(1){
                        font-size: 14px;
                    }
                }
            }
        }

        .text3{
            &>div{
                p{
                    font-size: 30px;
                }
            }
        }

        .parameter{
            &>div{
                width: 450px;
                &:nth-child(1){
                    height: 187px;
                    &>div{
                        p{
                            transform: scale(.8);
                            transform-origin: left center;
                        }
                    }
                }

                &:nth-child(2){
                    height: 262px;
                    &>div{
                        &:nth-child(1){
                            div{
                                p{
                                    transform-origin: left center;
                                    transform: scale(.6);
                                }
                            }
                        }

                        &:nth-child(2){
                            &>div{
                                div{
                                    p{
                                        transform-origin: left center;
                                        transform: scale(.6);
                                    }
                                }
                                
                            }
                        }
                    }
                }

                &:nth-child(3){
                    height: 112px;
                    &>div{
                        &>div{
                            p{
                                transform-origin: left center;
                                transform: scale(.6);
                            }
                        }
                        
                    }
                }
            }
        }
    }
}



.flex{
    display: flex;
}

.none{
    display: none;
}

.block{
    display: block;
}

.animation{
    transition: all .5s linear;
}

.opacity0{
    opacity: 0;
}

.opacity1{
    opacity: 1;
}